﻿using UnityEngine;
using UnityEngine.UI;

public class TipArea : MonoBehaviour
{
    Button QueDingBtn;
    Button QuXiaoBtn;

    // Start is called before the first frame update
    void Start()
    {
        QueDingBtn = ToolUnity.FindGameObject(gameObject, "QueDingBtn").GetComponent<Button>();
        QuXiaoBtn = ToolUnity.FindGameObject(gameObject, "QuXiaoBtn").GetComponent<Button>();
        QueDingBtn.onClick.AddListener(() =>
        {
            TopicSystem.Instance.GetScore();
            Destroy(gameObject);
        });

        QuXiaoBtn.onClick.AddListener(() =>
        {
            Destroy(gameObject);
        });

    }

}
